import { list } from "../../api/manager";
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        noDataImg: {
            type: String,
            value: '',
        },
        noDataText: {
            type: String,
            value: '暂无数据',
        },
        loading: {
            type: Boolean,
            value: false,
        },
    },
    lifetimes: {
        created() {
            this.getList()
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        val:'',
        options:[
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
            {alias:'陈楚(13959687899)'},
            {alias:'李四(13959687899)'},
        ],
        ifShow:false,
        maxlength:'20',
        inputMaxlength:'20',
        placeholder:'点击选择添加客户经理321'
    },

    /**
     * 组件的方法列表
     */
    methods: {
        changeInput(e){
            this.data.ifShow = true
            this.setData({
                ifShow:this.data.ifShow
            })
        },
        choosePeople(t){
            this.data.va1 =
                this.data.ifShow = false
            this.setData({
                ifShow: this.data.ifShow
            })
        },
        getList(){
            let params = {}
            list(params).then(res=>{
                this.data.options = res.data.data
                this.setData({
                    options: this.data.options
                })
            })
        }
    }
})
  